package com.xja.friend.mapper;

import com.xja.friend.entity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;
import java.util.List;

@Mapper
public interface MessageMapper {
    int deleteByPrimaryKey(String id);

    int insert(Message record);


    int insertSelective(Message record);


    int updateByPrimaryKeySelective(Message record);

    Message selectByPrimaryKey(String id);

    //查询互动信息
    List<Message> findHDXinXi(@Param("fromid") Integer fromid , @Param("toid") Integer toid);

    Message selectbyFromid(Integer fromid);

    int updateByPrimaryKey(Message record);
}